home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / Graphics Samples / viewPort Mania ƒ / graphics shell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  2.0 KB  |  78 lines  |  [TEXT/KAHL]

  1. /*
  2.     interfaces for a simple, one-window graphics shell
  3.     
  4.     ©1990 - 1994  Apple Computer, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #include <Desk.h>
  9. #include <Dialogs.h>
  10. #include <Events.h>
  11. #include <Fonts.h>
  12. #include <Windows.h>
  13. #include <Memory.h>
  14. #include <ToolUtils.h>
  15. #include <Menus.h>
  16. #include <Resources.h>
  17. #include <Quickdraw.h>
  18. #include <GestaltEqu.h>
  19. #include <CodeFragments.h>
  20.  
  21. #include "graphics toolbox.h"
  22. #include "graphics routines.h"
  23. #include "graphics libraries.h"
  24. #include "graphics debugging.h"
  25. #include "graphics macintosh.h"
  26. #include "font library.h"
  27.  
  28.  
  29.  
  30. /**\
  31. |**| ---------------------------------------------------------------------
  32. |**| EXTERN GLOBALS
  33. |**| ---------------------------------------------------------------------
  34. \**/
  35. /* these things are kept up-to-date by the shell and may be accessed at any time by the application. */
  36. extern WindowPtr         gWindow;
  37. extern gxShape             gWindowBoundsShape;
  38.  
  39. /* the following are expected to be initialized by the application */
  40. extern Boolean            gDebugging;
  41. extern Boolean            gGiveMeValidation;
  42. extern long                gGraphicsHeapSize;
  43.  
  44.  
  45. /**\
  46. |**| ---------------------------------------------------------------------
  47. |**| PROTOTYPES
  48. |**| ---------------------------------------------------------------------
  49. \**/
  50.  
  51. // QuickDraw GX shell.c:
  52.  
  53. void    main                    (void);
  54. void     InitToolbox                (void);
  55. void    CheckQuickDrawGX        (void);
  56. void    EventLoop                (void);
  57. void    MyDoEvent                (EventRecord *event);
  58. void    DoMouseDown                (EventRecord *event);
  59. void    SetUpGXDebuggingWorld    (Boolean GXDebuggingInstalled);
  60.  
  61. /* the following functions are supplied by the application using the shell and are called at the appropriate time. */
  62. void DoInitialization        (WindowPtr);
  63. void DoDraw                    (WindowPtr);
  64. void DoDispose                (WindowPtr);
  65. void DoClick                (gxPoint, WindowPtr);
  66. void DoIdle                    (WindowPtr);
  67.  
  68.  
  69. /**\
  70. |**| ---------------------------------------------------------------------
  71. |**| ENUMS
  72. |**| ---------------------------------------------------------------------
  73. \**/
  74. enum dlogIDs {rNoQuickDrawGXID=129};
  75.  
  76.  
  77.  
  78.